<template>
  <div>
      会员等级 id={{$route.params.id}}
  </div>
</template>

<script>
export default {
 
 name:"MemberLevel",
 beforeRouteEnter:(to,from,next)=>{
     console.log("进入会员等级页面");
     next(vm=>{
      vm.getData();
   }); 
  },
 beforeRouteLeave:(to,from,next)=>{
   console.log("离开会员等级页面");
   next();
 },
 methods:{
   getData:function(){
     this.axios({
       methods:"get",
       url:"",
     }).then((fun) => {
       console.log(fun);
     }).catch((err) => {
       console.log(err);
     });
   }
 }
}
</script>


<style>

</style>